
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 Machinemaintenancerule 分页列表
*/
export function getMachinemaintenancerulePagination(data: any) {
  return axios.get(`${context}/machinemaintenancerule/pagination`, { params: data });
}


/**
 * 获取 Machinemaintenancerule 所有数据
*/
export function getMachinemaintenanceruleAllList(data: any) {
  return axios.get(`${context}/machinemaintenancerule/all`, { params: data });
}


/**
 * 获取 Machinemaintenancerule 详情
*/
export function getMachinemaintenanceruleDetailById(id: any) {
  return axios.get(`${context}/machinemaintenancerule/${id}`, { params:{id} });
}


/**
 * 新增 Machinemaintenancerule
*/
export function addMachinemaintenancerule(data: any) {
  return axios.post(`${context}/machinemaintenancerule`, data);
}

/**
 * 修改 Machinemaintenancerule
*/
export function updateMachinemaintenancerule(data: any) {
  return axios.put(`${context}/machinemaintenancerule`, data);
}

/**
 * 删除 Machinemaintenancerule
*/
export function batchRemoveMachinemaintenancerule(data: any) {
  return axios.post(`${context}/machinemaintenancerule/batchRemove`, data);
}

    